package com.d3works.apps.stock.service;

import com.d3works.apps.stock.db.StockMove;
import com.d3works.exception.D3worksException;

public interface PartnerProductQualityRatingService {

  /**
   * Calculate quality rating.
   *
   * @param stockMove
   * @throws D3worksException
   */
  void calculate(StockMove stockMove) throws D3worksException;

  /**
   * Undo calculation of the quality rating.
   *
   * @param stockMove
   * @throws D3worksException
   */
  void undoCalculation(StockMove stockMove) throws D3worksException;
}
